package cn.zwx.member.svc.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author zhangwenxue
 */
@Data
@ApiModel("保存会员配置入参")
public class MemberConfigSaveDTO {

    @ApiModelProperty( value = "积分抵扣开关",required = true)
    @NotNull(message = "积分抵扣开发不能为空")
    private Boolean pointTradeDeductEnable;

    @ApiModelProperty( value = "积分抵扣，单位：分",required = true)
    @NotNull(message = "积分抵扣不能为空")
    private Integer pointTradeDeductUnitPrice;

    @ApiModelProperty( value = "积分抵扣最大值",required = true)
    @NotNull(message = "积分抵扣最大值不能为空")
    private Integer pointTradeDeductMaxPrice;

    @ApiModelProperty( value = "1-元赠送多少分",required = true)
    @NotNull(message = "1 元赠送积分不能为空")
    private Integer pointTradeGivePoint;
}
